    <div class="layui-card-body" id="alert_form">
    <form class="layui-form" action="" lay-filter="alert">
        <div class="layui-form-item">
    <label class="layui-form-label">项目名称</label>
    <div class="layui-input-block">
        <input type="text" name="name" value="{$data.name|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">分类id</label>
    <div class="layui-input-block">
        <input type="text" name="type_id" value="{$data.type_id|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">封面图片路径</label>
    <div class="layui-input-block">
        <input type="text" name="images" value="{$data.images|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">视频路径</label>
    <div class="layui-input-block">
        <input type="text" name="video_url" value="{$data.video_url|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">项目地址</label>
    <div class="layui-input-block">
        <input type="text" name="url" value="{$data.url|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">项目描述</label>
    <div class="layui-input-block">
        <input type="text" name="content" value="{$data.content|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">浏览量</label>
    <div class="layui-input-block">
        <input type="text" name="views" value="{$data.views|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">排序 倒叙</label>
    <div class="layui-input-block">
        <input type="text" name="order" value="{$data.order|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">等级</label>
    <div class="layui-input-block">
        <input type="text" name="level" value="{$data.level|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">点赞</label>
    <div class="layui-input-block">
        <input type="text" name="praise" value="{$data.praise|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">分享</label>
    <div class="layui-input-block">
        <input type="text" name="share" value="{$data.share|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">唯一ID</label>
    <div class="layui-input-block">
        <input type="text" name="uniqid" value="{$data.uniqid|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">造价详情</label>
    <div class="layui-input-block">
        <input type="text" name="cost" value="{$data.cost|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">项目名称</label>
    <div class="layui-input-block">
        <input type="text" name="project_name" value="{$data.project_name|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">标签</label>
    <div class="layui-input-block">
        <input type="text" name="tag" value="{$data.tag|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">项目封面图</label>
    <div class="layui-input-block">
        <input type="text" name="cover" value="{$data.cover|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">项目路径</label>
    <div class="layui-input-block">
        <input type="text" name="path" value="{$data.path|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">会员id</label>
    <div class="layui-input-block">
        <input type="text" name="member_id" value="{$data.member_id|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">项目名称</label>
    <div class="layui-input-block">
        <input type="text" name="project_name" value="{$data.project_name|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">标签</label>
    <div class="layui-input-block">
        <input type="text" name="tag" value="{$data.tag|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">项目封面图</label>
    <div class="layui-input-block">
        <input type="text" name="cover" value="{$data.cover|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">项目路径</label>
    <div class="layui-input-block">
        <input type="text" name="path" value="{$data.path|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">会员id</label>
    <div class="layui-input-block">
        <input type="text" name="member_id" value="{$data.member_id|default=''}" autocomplete="off" class="layui-input">
    </div>
</div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="save">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    </div>
    <script>
        //监听提交
        form.on('submit(save)', function (obj) {
            var post = obj.field;
            post.id = "{$data.id}"
            submitPost('{:url("admin/project/edit")}', post);
        });
    </script>